Напишите функцию, которая будет принимать строку (на английском языке) и возвращать сумму значений гласных букв. Каждой гласной букве соответствует какое-то число: A = 4, E = 3, I = 1, O = 0, U = 0.
Регистр букв роли не играет.
Примеры:
sum_of_vowels("Let\'s test this function.") ➞ 8 sum_of_vowels("Do I get the correct output?") ➞ 10 sum_of_vowels("I love edabit!") ➞ 12
Напишите функцию, которая будет принимать строку (на английском языке) и возвращать сумму значений гласных букв. Каждой гласной букве соответствует какое-то число: A = 4, E = 3, I = 1, O = 0, U = 0.
Регистр букв роли не играет.
Примеры:
sum_of_vowels("Let\'s test this function.") ➞ 8 sum_of_vowels("Do I get the correct output?") ➞ 10 sum_of_vowels("I love edabit!") ➞ 12
BY Python вопросы на собеседовании с ответами
Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283
The messaging service and social-media platform owes creditors roughly $700 million by the end of April, according to people briefed on the company’s plans and loan documents viewed by The Wall Street Journal. At the same time, Telegram Group Inc. must cover rising equipment and bandwidth expenses because of its rapid growth, despite going years without attempting to generate revenue.
The STAR Market, as is implied by the name, is heavily geared toward smaller innovative tech companies, in particular those engaged in strategically important fields, such as biopharmaceuticals, 5G technology, semiconductors, and new energy. The STAR Market currently has 340 listed securities. The STAR Market is seen as important for China’s high-tech and emerging industries, providing a space for smaller companies to raise capital in China. This is especially significant for technology companies that may be viewed with suspicion on overseas stock exchanges.
Python вопросы на собеседовании с ответами from in